package com.cz.run.constants;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description: TODO()
 * @auther:CAIYJ
 * @Date:2018/5/25 22:21
 */
public class ConstantKey {

    public static final String USER_KEY = "user_id";

    public static final String SIGNING_KEY = "Boss@Jwt!&Secret^#";

    public static final double DEFAULT_POINT = 10D;

    public static final String BASE_NICKNAME = "BC_SPORT_";

    /**
     * 推广-奖励算力
     */
    public static final Map<Integer, Integer> REFERRAL_REWARD = new HashMap<Integer, Integer>() {
        {
            put(5, 2);
            put(10, 3);
            put(20, 100);
            put(50, 300);
            put(500, 5000);
            put(999, 10000);
        }
    };

    /**
     * 健康连步数对应衰减系数
     */
    public static final Map<Integer, Double> STEP_RATIO = new HashMap<Integer, Double>() {
        {
            put(1000, 1D);
            put(2000, 1.168D);
            put(3000, 1.336D);
            put(4000, 1.504D);
            put(5000, 1.672D);
            put(6000, 1.84D);
            put(7000, 2.008D);
            put(8000, 2.176D);
            put(9000, 2.344D);
            put(10000, 2.512D);
            put(11000, 2.68D);
            put(12000, 2.848D);
            put(13000, 3.016D);
            put(14000, 3.184D);
            put(15000, 3.352D);
            put(16000, 3.52D);
            put(17000, 3.688D);
            put(18000, 3.856D);
            put(19000, 4.024D);
            put(20000, 4.192D);
            put(21000, 4.36D);
            put(22000, 4.528D);
            put(23000, 4.696D);
            put(24000, 4.864D);
            put(25000, 5.032D);
            put(26000, 5.2D);
            put(27000, 5.368D);
            put(28000, 5.536D);
            put(29000, 5.704D);
            put(30000, 5.872D);
        }
    };
}